#include <iostream>
#include "ximage.h"
int main()
{
	//std::string ffname="object2.jpg";
	//bool back=Image.Load(ffname.c_str(),CXIMAGE_FORMAT_JPG);
	
	std::string ffname="11.bmp";
	CxImage  Image;
	bool back = Image.Load(ffname.c_str(),CXIMAGE_FORMAT_BMP);

	if(back)
	{
		printf("load image success, height = %lu, width = %lu\n", Image.GetWidth(), Image.GetHeight());
	}
	else
	{
		printf("load image failed.\n");
	}
	
	return 0;
}